package jp.co.redfox.archclub.utility.datas;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class FileUtil {

    public static final String BASE_DIR = "file/";
    
    public static String load(String path) {
        BufferedReader in = null;
        StringBuilder message = new StringBuilder();
        try {
            in = new BufferedReader(new FileReader(BASE_DIR + path));
            String line = null;
            while ((line = in.readLine()) != null) {
                message.append(line + "\n");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
        return message.toString();
    }
}
